package com.wanxi.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@ApiModel(value = "用户实体类")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User extends Base {

    @ApiModelProperty(value = "手机号",required = true)
    private String phoneNumber;
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    @ApiModelProperty(value = "昵称(用户名)",required = true)
    private String nickname;
    @ApiModelProperty(value = "头像",required = true)
    private String headPortrait;
    @ApiModelProperty(value = "性别",required = true)
    private Integer sex;
    @ApiModelProperty(value = "邮箱",required = true)
    private String email;
    @ApiModelProperty(value = "生日",required = true)
    private Date birthday;
    @ApiModelProperty(value = "地址",required = true)
    private String address;
    @ApiModelProperty(value = "职业",required = true)
    private String occupation;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("状态")
    private Integer state;

    @ApiModelProperty("备注")
    private String remarks;

}
